package cn.kimming.mapper;

import cn.kimming.common.pojo.Room;
import cn.kimming.common.vo.RoomInFoVO;
import cn.kimming.common.vo.RoomVO;
import com.alibaba.fastjson.JSONObject;

import java.util.List;

public interface RoomMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Room record);

    int insertSelective(Room record);

    Room selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Room record);

    int updateByPrimaryKey(Room record);

    List<RoomVO> findAll(Integer roomNum);

    RoomVO findById(Long id);

    Long findIdByRoomNum(Integer roomNum);

    Long findCountByTypeId(Long typeId);

    List<JSONObject> find4BuildingCodeFilter();

    List<RoomInFoVO> findInfo(Integer roomNum);

    List<Room> selectAllByTypeId(Long typeId);

    Room selectCheckinable(Long typeId);
}